package com.yt.spring_aop;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.yt.aop.Aop;

public class Test1 {
	ApplicationContext context;
	@Before
	public void before(){
		context = new ClassPathXmlApplicationContext("aop.xml");
	}
	
	@Test
	public void demo11(){
		Aop aop = (Aop) context.getBean("aop");
		aop.demo(/*"youjie==>"*/);
	}
}
